<!-- 餐厅查询 -->
<div class="search">
    <nz-input-group nzSuffixIcon="anticon anticon-search" style="width:70%;margin-left:1rem;">
      <input type="text" nz-input placeholder="输入餐厅名称/地址" [(ngModel)]="name" (keyup.enter)="searchData()">
    </nz-input-group>
    <a (click)="searchData()">查询</a>
  </div>
  
  <nz-table #ajaxTable nzShowSizeChanger [nzFrontPagination]="false" [nzData]="dataSet" [nzLoading]="loading" [nzTotal]="total"
    [nzShowTotal]="totalTemplate" [(nzPageIndex)]="pageIndex" [(nzPageSize)]="pageSize" [nzScroll]="{ x:'2500px',y: '400px' }">
    <thead>
      <tr>
        <th nzWidth="60px" nzLeft="0px">序号</th>
        <th nzWidth="80px">使用状态</th>
        <th nzWidth="80px">申请状态</th>
        <th nzWidth="80px">押金状态</th>
        <th nzWidth="150px">邀请会员数量(位)</th>
        <th nzWidth="200px">企业名称</th>
        <th nzWidth="100px">企业法人</th>
        <th nzWidth="100px">法人手机号</th>
        <th nzWidth="100px">企业负责人</th>
        <th nzWidth="250px">地址</th>
      </tr>
    </thead>
    <tbody>
      <tr *ngFor="let data of ajaxTable.data;index as i">
        <td nzLeft="0px">{{i+1}}</td>
        <td>{{data.status}}</td>
        <td>{{data.state}}</td>
        <td>{{data.bondstatus}}</td>
        <td>{{data.inviterNum}}</td>
        <td>{{data.name}}</td>
        <td>{{data.legalpersonname}}</td>
        <td>{{data.legalpersontel}}</td>
        <td>{{data.legaluser}}</td>
        <td>{{data.address}}</td>
      </tr>
    </tbody>
  </nz-table>
  
  <ng-template #totalTemplate let-total>
    共 {{total}} 条
  </ng-template>